package com.yxw.live_vod_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import java.io.Serializable;


/** 
 * @author liuxin
 * @create 2023-11-21 14:51:29 
 * @description 消息推送信息  
 */
@Data
@TableName(value ="yx_sys_notice")
@ApiModel(value = "消息推送信息 " , description="yx_sys_notice")
public class YxSysNoticeEntity  implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "notice_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="主键")
    private Long noticeId;

    @TableField(value="notice_type_code")
    @ApiModelProperty(value="通知类型编码")
    private String noticeTypeCode;

    @TableField(value="notice_type_name")
    @ApiModelProperty(value="通知类型名称")
    private String noticeTypeName;

    @TableField(value="use_type_name")
    @ApiModelProperty(value="触发条件编码")
    private String useTypeName;

    @TableField(value="use_type_code")
    @ApiModelProperty(value="触发条件编码")
    private String useTypeCode;

    @TableField(value="content")
    @ApiModelProperty(value="发送内容")
    private String content;

    @TableField(value="create_time")
    @ApiModelProperty(value="发送时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(value="send_way")
    @ApiModelProperty(value="1:短信2：页面")
    private Integer sendWay;

    @TableField(value="read_flag")
    @ApiModelProperty(value="0：未读 1：已读")
    private Integer readFlag;

    @TableField(value="user_id")
    @ApiModelProperty(value="发送对象ID")
    private Long userId;

    @TableField(value="user_name")
    @ApiModelProperty(value="发送人名称")
    private String userName;

    @TableField(value="status")
    @ApiModelProperty(value="发送状态：0：失败 1：成功")
    private Integer status;

    @TableField(value="notice_category")
    @ApiModelProperty(value="通知所属大类 1：关注 2：互动消息 3：系统消息")
    private Integer noticeCategory;

    @TableField(value="shop_id")
    @ApiModelProperty(value="店铺ID")
    private Long shopId;

    @TableField(value="shop_name")
    @ApiModelProperty(value="店铺名称")
    private String shopName;

    @TableField(value="buss_id")
    @ApiModelProperty(value="业务ID")
    private String bussId;
}
